home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 July: Mac OS SDK / Dev.CD Jul 99 SDK1.toast / Development Kits / Mac OS / Interfaces&Libraries / Universal / Interfaces / AIncludes / LowMemEqu.a < prev    next >
Encoding:
Text File  |  1998-08-17  |  24.8 KB  |  562 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        LowMemEqu.a
  3. ;
  4. ;    Contains:    EQUates for low-mem locations.
  5. ;
  6. ;    Version:    Technology:    Mac OS 8
  7. ;                Package:    Universal Interfaces 3.1
  8. ;
  9. ;    Copyright:    © 1984-1998 by Apple Computer, Inc.
  10. ;                All rights reserved.
  11. ;
  12. ;    Bugs?:        Please include the the file and version information (from above) with
  13. ;                the problem description.  Developers belonging to one of the Apple
  14. ;                developer programs can submit bug reports to:
  15. ;
  16. ;                    devsupport@apple.com
  17. ;
  18. ;
  19.  
  20.     IF &TYPE('__LOWMEMEQU__') = 'UNDEFINED' THEN
  21. __LOWMEMEQU__ SET 1
  22.  
  23.  
  24.     IF &TYPE('__CONDITIONALMACROS__') = 'UNDEFINED' THEN
  25.     include 'ConditionalMacros.a'
  26.     ENDIF
  27.     
  28.     ; All this globals have new names in LowMem.a
  29.     IF OLDROUTINENAMES THEN
  30.  
  31. ;___________________________________________________________________________
  32. ; LowMemEqu.a is a stepping stone to the Universal AIncludes.  
  33. ;
  34. ; When converting classic 68K assembly source to use the Universal AIncludes
  35. ; it is recommended to compare the object code produced before and after
  36. ; the conversion.  But, use of the _LMGetXXX accessors can generate different
  37. ; object code than use of an EQU from the old SysEqu.a file.  Therefore,
  38. ; this file exists so that you can continue to use EQU's to access lowmem
  39. ; (in classic 68K code only) while converting everything else to use
  40. ; the Universal AIncludes.  Once the object code comparison checks out and
  41. ; the conversion is complete (except for lowmem), this file can be removed
  42. ; and LowMem.a used instead.
  43. ;
  44. ;___________________________________________________________________________
  45.  
  46.  
  47.  
  48. PCDeskPat         EQU         $20B                      ; desktop pat, top bit only! others are in use
  49. HiKeyLast         EQU         $216                      ; Same as KbdVars
  50. KbdLast           EQU         $218                      ; Same as KbdVars+2
  51. ExpandMem         EQU         $2B6                      ; pointer to expanded memory block
  52.  
  53. ; start at $C00
  54.  
  55. SCSIBase          EQU         $0C00                     ; (long) base address for SCSI chip read
  56. SCSIDMA           EQU         $0C04                     ; (long) base address for SCSI DMA
  57. SCSIHsk           EQU         $0C08                     ; (long) base address for SCSI handshake
  58. SCSIGlobals       EQU         $0C0C                     ; (long) ptr for SCSI mgr locals
  59. RGBBlack          EQU         $0C10                     ; (6 bytes) the black field for color
  60. RGBWhite          EQU         $0C16                     ; (6 bytes) the white field for color
  61.  
  62. RowBits           EQU         $0C20                     ; (word) screen horizontal pixels
  63. ColLines          EQU         $0C22                     ; (word) screen vertical pixels
  64. ScreenBytes       EQU         $0C24                     ; (long) total screen bytes
  65.  
  66. NMIFlag           EQU         $0C2C                     ; (byte) flag for NMI debounce
  67. VidType           EQU         $0C2D                     ; (byte) video board type ID
  68. ScrnInval        EQU            $0C2D                    ; (byte) replaces obscure VidType.  When $FFFF, scrn resource is
  69.                                                     ;        valid.  When cleared, scrn resource is invalid.
  70. VidMode           EQU         $0C2E                     ; (byte) video mode (4=4bit color)
  71. SCSIPoll          EQU         $0C2F                     ; (byte) poll for device zero only once.
  72.  
  73. SEVarBase         EQU         $0C30                     ; ($0C30-0CB0) 128 bytes for sys err data
  74.  
  75. MMUFlags          EQU         $0CB0                     ; (byte) cleared to zero (reserved for future use)
  76. MMUType           EQU         $0CB1                     ; (byte) kind of MMU present
  77. MMU32bit          EQU         $0CB2                     ; (byte) boolean reflecting current machine MMU mode
  78. MMUTbl            EQU         $0CB4                     ; (long) pointer to MMU Mapping table
  79. MMUTblSize        EQU         $0CB8                     ; (long) size of the 24 bit mode MMU mapping table
  80. MMU24Info         EQU         $0CB4                      ; (long) ptr to 24 bit mode MMU configuration info
  81. MMU32Info         EQU         $0CB8                     ; (long) ptr to 32 bit mode MMU configuration info
  82. SInfoPtr          EQU         $0CBC                     ; (long) pointer to Slot manager information
  83. ASCBase           EQU         $0CC0                     ; (long) pointer to Sound Chip
  84. SMGlobals         EQU         $0CC4                     ; (long) pointer to Sound Manager Globals
  85. TheGDevice        EQU         $0CC8                     ; (long) the current graphics device
  86. CQDGlobals        EQU         $0CCC                     ; (long) quickDraw global extensions
  87.  
  88. ; TEMPORARY EQUATE
  89. DeskCPat          EQU         $0CD8                     ; [PixPatHandle] Handle to desk pixPat
  90.  
  91. TimeVIADB         EQU         $0CEA                     ; (word) number of iter's of VIA access & DBRA.    
  92.  
  93. VIA2               EQU         $0CEC                     ; VIA2 base address [pointer]                    
  94. RBV                EQU            VIA2                    ; RBV base address [pointer] share with VIA2    
  95. VIA2RBV           EQU         VIA2                     ; VIA2 or RBV base address [pointer]            
  96. OSS                EQU            VIA2                    ; OSS base address [pointer] share with VIA2    
  97. VIA2RBVOSS       EQU         VIA2                     ; VIA2 or RBV or OSS base address [pointer]        
  98. VISA            EQU            VIA2                    ; VISA base address [pointer]                    
  99. V8                EQU            VIA2                    ; V8 base address [pointer]
  100.  
  101. WarmStart         EQU         $0CFC                     ; (long) flag to indicate it is a warm start
  102. TimeDBRA          EQU         $0D00                     ; (word) number of iterations of DBRA per millisecond
  103. TimeSCCDB         EQU         $0D02                     ; (word) number of iter's of SCC access & DBRA.
  104.  
  105. PmgrBase          EQU         $0D18                      ; Lomem pointer to power manager vars
  106.  
  107. TableSeed         EQU         $0D20                     ; (long) seed value for color table ID's
  108. SRsrcTblPtr       EQU         $0D24                     ; (long) pointer to slot resource table.
  109. JVBLTask          EQU         $0D28                     ; vector to slot VBL task interrupt handler
  110. WMgrCPort         EQU         $0D2C                     ; window manager color port
  111. VertRRate         EQU         $0D30                     ; (word) Vertical refresh rate for start manager.
  112.  
  113. ChunkyDepth       EQU         $0D60                     ; depth of the pixels
  114. CrsrPtr           EQU         $0D62                     ; pointer to cursor save area
  115. PortList          EQU         $0D66                     ; list of grafports
  116. MickeyBytes       EQU         $0D6A                     ; long pointer to cursor stuff
  117. QDErr             EQU         $0D6E                     ; QuickDraw error code [word]
  118. VIA2DT            EQU         $0D70                     ; 32 bytes for VIA2 dispatch table for NuMac
  119.  
  120. SInitFlags        EQU         $0D90                     ; StartInit.a flags [word]
  121. DTQueue           EQU         $0D92                     ; (10 bytes) deferred task queue header
  122. DTQFlags          EQU         $0D92                     ; flag word for DTQueue
  123. DTskQHdr          EQU         $0D94                     ; ptr to head of queue
  124. DTskQTail         EQU         $0D98                     ; ptr to tail of queue
  125. JDTInstall        EQU         $0D9C                     ; (long) ptr to deferred task install routine
  126. HiliteRGB         EQU         $0DA0                     ; 6 bytes: rgb of hilite color
  127. DSCtrAdj          EQU         $0DA8                     ; (long) Center adjust for DS rect.
  128. IconTLAddr        EQU         $0DAC                     ; (long) pointer to where start icons are to be put.
  129. VideoInfoOK       EQU         $0DB0                     ; (long) Signals to CritErr that the Video card is ok
  130. EndSRTPtr         EQU         $0DB4                     ; (long) Pointer to the end of the Slot Resource Table (Not the SRT buffer).
  131. SDMJmpTblPtr      EQU         $0DB8                     ; (long) Pointer to the SDM jump table
  132. JSwapMMU          EQU         $0DBC                     ; (long) jump vector to SwapMMU routine
  133. SdmBusErr         EQU         $0DC0                     ; (long) Pointer to the SDM busErr handler
  134. LastTxGDevice     EQU         $0DC4                     ; (long) copy of TheGDevice set up for fast text measure
  135.  
  136. NewCrsrJTbl       EQU         $88C                      ; location of new crsr jump vectors
  137. JAllocCrsr        EQU         $88C                      ; (long) vector to routine that allocates cursor
  138. JSetCCrsr         EQU         $890                      ; (long) vector to routine that sets color cursor
  139. JOpcodeProc       EQU         $894                      ; (long) vector to process new picture opcodes
  140. CRSRBASE          EQU         $898                      ; (long) scrnBase for cursor
  141. CrsrDevice        EQU         $89C                      ; (long) current cursor device
  142. SrcDevice         EQU         $8A0                      ; (LONG) Src device for Stretchbits
  143. MainDevice        EQU         $8A4                      ; (long) the main screen device
  144. DeviceList        EQU         $8A8                      ; (long) list of display devices
  145. CRSRROW           EQU         $8AC                      ; (word) rowbytes for current cursor screen
  146. QDColors          EQU         $8B0                      ; (long) handle to default colors
  147.  
  148. ; QuickDraw
  149.  
  150. HiliteMode        EQU         $938                      ; used for color highlighting
  151.  
  152.  
  153. ; Exception vectors
  154.  
  155. BusErrVct         EQU         $008                   ; bus error vector
  156. AddrVector        EQU            $00C                ; address error
  157. IlglVector        EQU            $010                ; illegal instruction
  158. ZeroVector        EQU            $014                ; divide by 0
  159. CheckVector        EQU            $018                ; check bounds error
  160. TrapVVector        EQU            $01C                ; trapv location
  161. PrivlgVector    EQU            $020                ; privilege violation
  162. TraceVector        EQU            $024                ; trace exception vector
  163. Line1010          EQU         $028                   ; 1010 emulator trap (system routines)
  164. Line1111          EQU         $02C                   ; 1111 emulator trap (reserved)
  165. DebugVector        EQU            Line1111            ; debug instructions
  166. FmtErrVect        EQU         $038                   ; format error vector for 68010/68020
  167. BadIntVector    EQU            $060                ; spurious interrupt
  168. AutoInt1          EQU         $064                   ; level 1 auto-vector
  169. AutoInt2          EQU         $068                   ; level 2 auto-vector
  170. AutoInt3          EQU         $06C                   ; level 3 auto-vector
  171. AutoInt4          EQU         $070                   ; level 4 auto-vector
  172. AutoInt5          EQU         $074                   ; level 5 auto-vector
  173. AutoInt6          EQU         $078                   ; level 6 auto-vector
  174. AutoInt7          EQU         $07C                   ; level 7 auto-vector
  175. BkptVector        EQU            $0B8                ; break loc
  176.  
  177. ;+ System Error Handler
  178.  
  179. RestProc          EQU         $A8C                      ; Resume procedure f InitDialogs [pointer]
  180.  
  181.  
  182. ; Topanga video mode for Esprit
  183. NTSC               EQU         $B3E                      ; A byte                        
  184.  
  185.  
  186. ;+ ROM Equates
  187.  
  188. ROM85             EQU         $28E                      ; (word) actually high bit - 0 for ROM vers $75 (sic) and later
  189. ROMMapHndl        EQU         $B06                      ; (long) handle of ROM resource map
  190.  
  191. ;+ Screen Equates
  192.  
  193. ScrVRes           EQU         $102                      ; screen vertical dots/inch [word]
  194. ScrHRes           EQU         $104                      ; screen horizontal dots/inch [word]
  195. ScrnBase          EQU         $824                      ; Screen Base [pointer]
  196. ScreenRow         EQU         $106                      ; rowBytes of screen [word]
  197.  
  198.  
  199. ; Mouse/Keyboard
  200.  
  201. MBTicks           EQU         $16E                      ; tick count @ last mouse button [long]
  202. JKybdTask         EQU         $21A                      ; keyboard VBL task hook [pointer]
  203. KeyLast           EQU         $184                      ; ASCII for last valid keycode [word]
  204. KeyTime           EQU         $186                      ; tickcount when KEYLAST was rec'd [long]
  205. KeyRepTime        EQU         $18A                      ; tickcount when key was last repeated [long]
  206.  
  207. ;+ Parameter RAM (a twenty byte copy of the real parameter ram).
  208.  
  209. SPConfig          EQU         $1FB                      ; config bits: 4-7 A, 0-3 B (see use type below)
  210. SPPortA           EQU         $1FC                      ; SCC port A configuration [word]
  211. SPPortB           EQU         $1FE                      ; SCC port B configuration [word]
  212.  
  213. ; SCC Serial Chip Addresses
  214.  
  215. SCCRd             EQU         $1D8                      ; SCC base read address [pointer]
  216. SCCWr             EQU         $1DC                      ; SCC base write address [pointer]
  217.  
  218. ; Unpacked, user versions of parameter ram
  219.  
  220. DoubleTime        EQU         $2F0                      ; double click ticks [long]
  221. CaretTime         EQU         $2F4                      ; caret blink ticks [long]
  222. KeyThresh         EQU         $18E                      ; threshold for key repeat [word]
  223. KeyRepThresh      EQU         $190                      ; key repeat speed [word]
  224. SdVolume          EQU         $260                      ; Global volume(sound) control [byte]
  225.  
  226.  
  227. ;+ System Clocks
  228.  
  229. Ticks             EQU         $16A                      ; Tick count, time since boot [long]
  230. Time              EQU         $20C                      ; clock time (extrapolated) [long]
  231.  
  232.  
  233. ;+ Event Manager
  234.  
  235. MonkeyLives       EQU         $100                      ; monkey lives if >= 0 [word]
  236. SEvtEnb           EQU         $15C                      ; enable SysEvent calls from GNE [byte]
  237. JournalFlag       EQU         $8DE                      ; journaling state [word]
  238. JournalRef        EQU         $8E8                      ; Journalling driver's refnum [word]
  239.  
  240.  
  241. ;+ Memory Manager
  242.  
  243. BufPtr            EQU         $10C                      ; top of application memory [pointer]
  244. StkLowPt          EQU         $110                      ; Lowest stack as measured in VBL task [pointer]
  245. TheZone           EQU         $118                      ; current heap zone [pointer]
  246. ApplLimit         EQU         $130                      ; application limit [pointer]
  247. SysZone           EQU         $2A6                      ; system heap zone [pointer]
  248. ApplZone          EQU         $2AA                      ; application heap zone [pointer]
  249. HeapEnd           EQU         $114                      ; end of heap [pointer]
  250. HiHeapMark        EQU         $BAE                      ; (long) highest address used by a zone below sp
  251. MemErr            EQU         $220                      ; last memory manager error [word]
  252.  
  253. ; Driver Globals
  254.  
  255. UTableBase        EQU         $11C                      ; unit I/O table [pointer]
  256. UnitNtryCnt       EQU         $1D2                      ; count of entries in unit table [word]
  257. JFetch            EQU         $8F4                      ; fetch a byte routine for drivers [pointer]
  258. JStash            EQU         $8F8                      ; stash a byte routine for drivers [pointer]
  259. JIODone           EQU         $8FC                      ; IODone entry location [pointer]
  260.  
  261.  
  262. ; File System Globals
  263.  
  264. DrvQHdr           EQU         $308                      ; queue header of drives in system [10 bytes]
  265. BootDrive         EQU         $210                      ; drive number of boot drive [word]
  266. EjectNotify       EQU         $338                      ; eject notify procedure [pointer]
  267. IAZNotify         EQU         $33C                      ; world swaps notify procedure [pointer]
  268. SFSaveDisk        EQU         $214                      ; last vRefNum seen by standard file [word]
  269. CurDirStore       EQU         46+$36A                   ; save dir across calls to Standard File [long]
  270.  
  271. ;+ Miscellaneous stuff
  272.  
  273. OneOne            EQU         $A02                      ; constant $00010001 [long]
  274. MinusOne          EQU         $A06                      ; constant $FFFFFFFF [long]
  275. Lo3Bytes          EQU         $31A                      ; constant $00FFFFFF [long]
  276. ROMBase           EQU         $2AE                      ; ROM base address [pointer]
  277. RAMBase           EQU         $2B2                      ; RAM base address [pointer]
  278. SysVersion        EQU         $15A                      ; version # of RAM-based system [word]
  279. RndSeed           EQU         $156                      ; random seed/number [long]
  280.  
  281. ;+ Scratch Areas
  282.  
  283. Scratch20         EQU         $1E4                      ; scratch [20 bytes]
  284. Scratch8          EQU         $9FA                      ; scratch [8 bytes]
  285.  
  286.  
  287. ;+ Scrap Manager
  288.  
  289. ScrapVars         EQU         $960                      ; scrap manager variables [32 bytes]
  290. ScrapInfo         EQU         $960                      ; scrap length [long]
  291. ScrapSize         EQU         $960                      ; scrap length [long]
  292. ScrapHandle       EQU         $964                      ; memory scrap [handle]
  293. ScrapCount        EQU         $968                      ; validation byte [word]
  294. ScrapState        EQU         $96A                      ; scrap state [word]
  295. ScrapName         EQU         $96C                      ; pointer to scrap name [pointer]
  296. ScrapEnd          EQU         $980                      ; end of scrap vars
  297. ScrapTag          EQU         $970                      ; scrap file name [STRING[15]]
  298.  
  299.           
  300. ;International stuff
  301.  
  302. IntlSpec          EQU         $BA0                      ; (long) - ptr to extra Intl data
  303.  
  304. ;Switcher
  305.  
  306. SwitcherTPtr      EQU         $286                      ; Switcher's switch table
  307.  
  308.  
  309. ; Peripheral chips and Magic Hardware addresses
  310.  
  311. CPUFlag           EQU         $12F                      ; $00=68000, $01=68010, $02=68020 (old ROM inits to $00)
  312.  
  313. ; VIA (6522) interface chip
  314.  
  315. VIA               EQU         $1D4                      ; VIA base address [pointer]
  316.  
  317. ; Disk Address
  318.  
  319. IWM               EQU         $1E0                      ; IWM base address [pointer]
  320.  
  321.  
  322. ; Interrupt secondary vectors
  323.  
  324. Lvl1DT            EQU         $192                      ; Interrupt level 1 dispatch table [32 bytes]
  325. Lvl2DT            EQU         $1B2                      ; Interrupt level 2 dispatch table [32 bytes]
  326. ExtStsDT          EQU         $2BE                      ; SCC ext/sts secondary dispatch table [16 bytes]
  327.  
  328.  
  329. ; Parameter Ram
  330.  
  331. SPValid           EQU         $1F8                      ; validation field ($A7) [byte]
  332. SPATalkA          EQU         $1F9                      ; AppleTalk node number hint for port A
  333. SPATalkB          EQU         $1FA                      ; AppleTalk node number hint for port B
  334. SPAlarm           EQU         $200                      ; alarm time [long]
  335. SPFont            EQU         $204                      ; default application font number minus 1 [word]
  336. SPKbd             EQU         $206                      ; kbd repeat thresh in 4/60ths [2 4-bit]
  337. SPPrint           EQU         $207                      ; print stuff [byte]
  338. SPVolCtl          EQU         $208                      ; volume control [byte]
  339. SPClikCaret       EQU         $209                      ; double click/caret time in 4/60ths[2 4-bit]
  340. SPMisc1           EQU         $20A                      ; miscellaneous [1 byte]
  341. SPMisc2           EQU         $20B                      ; miscellaneous [1 byte]
  342. GetParam          EQU         $1E4                      ; system parameter scratch [20 bytes]
  343. SysParam          EQU         $1F8                      ; system parameter memory [20 bytes]
  344.  
  345. ; Cursor
  346.  
  347. CrsrThresh        EQU         $8EC                      ; delta threshold for mouse scaling [word]
  348. JCrsrTask         EQU         $8EE                      ; address of CrsrVBLTask [long]
  349. MTemp             EQU         $828                      ; Low-level interrupt mouse location [long]
  350. RawMouse          EQU         $82C                      ; un-jerked mouse coordinates [long]
  351. CrsrRect          EQU         $83C                      ; Cursor hit rectangle [8 bytes]
  352. TheCrsr           EQU         $844                      ; Cursor data, mask & hotspot [68 bytes]
  353. CrsrAddr          EQU         $888                      ; Address of data under cursor [long]
  354. CrsrSave          EQU         $88C                      ; data under the cursor [64 bytes]
  355. CrsrVis           EQU         $8CC                      ; Cursor visible? [byte]
  356. CrsrBusy          EQU         $8CD                      ; Cursor locked out? [byte]
  357. CrsrNew           EQU         $8CE                      ; Cursor changed? [byte]
  358. CrsrState         EQU         $8D0                      ; Cursor nesting level [word]
  359. CrsrObscure       EQU         $8D2                      ; Cursor obscure semaphore [byte]
  360.  
  361. ; Mouse/Keyboard
  362.  
  363. KbdVars           EQU         $216                      ; Keyboard manager variables [4 bytes]
  364. KbdType           EQU         $21E                      ; keyboard model number [byte]
  365. MBState           EQU         $172                      ; current mouse button state [byte]
  366. KeyBrdMap        EQU         $174                      ; bitmap of the keyboard [2 longs]
  367. KeypadMap         EQU         $17C                      ; bitmap for numeric pad-18bits [long]
  368. Key1Trans         EQU         $29E                      ; keyboard translator procedure [pointer]
  369. Key2Trans         EQU         $2A2                      ; numeric keypad translator procedure [pointer]
  370. JGNEFilter        EQU         $29A                      ; GetNextEvent filter proc [pointer]
  371. KeyMVars          EQU         $B04                      ; (word) for ROM KEYM proc state
  372. Mouse             EQU         $830                      ; processed mouse coordinate [long]
  373. CrsrPin           EQU         $834                      ; cursor pinning rectangle [8 bytes]
  374. CrsrCouple        EQU         $8CF                      ; cursor coupled to mouse? [byte]
  375. CrsrScale         EQU         $8D3                      ; cursor scaled? [byte]
  376. MouseMask         EQU         $8D6                      ; V-H mask for ANDing with mouse [long]
  377. MouseOffset       EQU         $8DA                      ; V-H offset for adding after ANDing [long]
  378.  
  379. ; System Clocks
  380.  
  381. AlarmState        EQU         $21F                      ; Bit7=parity, Bit6=beeped, Bit0=enable [byte]
  382.  
  383.  
  384. ;+ Vertical Blanking Interrupt Handler
  385.  
  386. VBLQueue          EQU         $160                      ; VBL queue header [10 bytes]
  387.  
  388. ; Event manager
  389.  
  390. SysEvtMask        EQU         $144                      ; system event mask [word]
  391. SysEvtBuf         EQU         $146                      ; system event queue element buffer [pointer]
  392. EventQueue        EQU         $14A                      ; event queue header [10 bytes]
  393. EvtBufCnt         EQU         $154                      ; max number of events in SysEvtBuf - 1 [word]
  394.  
  395. ; Memory manager
  396.  
  397. GZRootHnd         EQU         $328                      ; root handle for GrowZone [handle]
  398. GZRootPtr         EQU         $32C                      ; root pointer for GrowZone [pointer]
  399. GZMoveHnd         EQU         $330                      ; moving handle for GrowZone [handle]
  400. MemTop            EQU         $108                      ; top of memory [pointer]
  401. MmInOK            EQU         $12E                      ; initial memory mgr checks ok? [byte]
  402. HpChk             EQU         $316                      ; heap check RAM code [pointer]
  403. MaskBC            EQU         $31A                      ; Memory Manager Byte Count Mask [long]
  404. MaskHandle        EQU         $31A                      ; Memory Manager Handle Mask [long]
  405. MaskPtr           EQU         $31A                      ; Memory Manager Pointer Mask [long]
  406. MinStack          EQU         $31E                      ; min stack size used in InitApplZone [long]
  407. DefltStack        EQU         $322                      ; default size of stack [long]
  408. MMDefFlags        EQU         $326                      ; default zone flags [word]
  409.  
  410. ;+ System Error Handler
  411.  
  412. DSAlertTab        EQU         $2BA                      ; system error alerts [pointer]
  413. DSAlertRect       EQU         $3F8                      ; rectangle for disk-switch alert [8 bytes]
  414. DSDrawProc        EQU         $334                      ; alternate syserror draw procedure [pointer]
  415. DSWndUpdate       EQU         $15D                      ; GNE not to paintBehind DS AlertRect? [byte]
  416. WWExist           EQU         $8F2                      ; window manager initialized? [byte]
  417. QDExist           EQU         $8F3                      ; quickdraw is initialized [byte]
  418. ResumeProc        EQU         $A8C                      ; Resume procedure from InitDialogs [pointer]
  419. DSErrCode         EQU         $AF0                      ; last system error alert ID
  420.  
  421. ; Serial I/O Driver
  422.  
  423. SerialVars        EQU         $2D0                      ; async driver variables [16 bytes]
  424. ABusVars          EQU         $2D8                      ; Pointer to AppleTalk local variables
  425. ABusDCE           EQU         $2DC                      ; Pointer to AppleTalk DCE
  426. PortAUse          EQU         $290                      ; bit 7: 1 = not in use, 0 = in use
  427. ; bits 0-3: current use of port (see use type)
  428. ; bits 4-6: user specific
  429. PortBUse          EQU         $291                      ; port B use, same format as PortAUse
  430. SCCASts           EQU         $2CE                      ; SCC read reg 0 last ext/sts rupt - A [byte]
  431. SCCBSts           EQU         $2CF                      ; SCC read reg 0 last ext/sts rupt - B [byte]
  432.  
  433.  
  434. DskErr            EQU         $142                      ; disk routine result code [word]
  435. PWMBuf2           EQU         $312                      ; PWM buffer 1 (or 2 if sound) [pointer]
  436.  
  437. ; Sound Stuff
  438.  
  439. SoundPtr          EQU         $262                      ; 4VE sound definition table [pointer]
  440. SoundBase         EQU         $266                      ; sound bitMap [pointer]
  441. SoundVBL          EQU         $26A                      ; vertical retrace control element [16 bytes]
  442. SoundDCE          EQU         $27A                      ; sound driver DCE [pointer]
  443. SoundActive       EQU         $27E                      ; sound is active? [byte]
  444. SoundLevel        EQU         $27F                      ; current level in buffer [byte]
  445. CurPitch          EQU         $280                      ; current pitch value [word]
  446.  
  447. ; I/O System
  448.  
  449. ToExtFS           EQU         $3F2                      ; hook for external file systems
  450.  
  451. ; File System Globals
  452.  
  453. DskVerify         EQU         $12C                      ; used by 3.5 disk driver for read/verify [byte]
  454. TagData           EQU         $2FA                      ; sector tag info for disk drivers [14 bytes]
  455. BufTgFNum         EQU         $2FC                      ; file number [long]
  456. BufTgFFlg         EQU         $300                      ; flags [word]
  457. BufTgFBkNum       EQU         $302                      ; logical block number [word]
  458. BufTgDate         EQU         $304                      ; time stamp [word]
  459.  
  460. ; Print variables
  461.  
  462. ScrDmpEnb         EQU         $2F8                      ; screen dump enabled? [byte]
  463. ScrDmpType        EQU         $2F9                      ; FF dumps screen, FE dumps front window [byte]
  464.  
  465.  
  466. ; Segment Loader
  467.  
  468. LaunchFlag        EQU         $902                      ; from launch or chain [byte]
  469. SaveSegHandle     EQU         $930                      ; seg 0 handle [handle]
  470. CurJTOffset       EQU         $934                      ; current jump table offset [word]
  471. CurPageOption     EQU         $936                      ; current page 2 configuration [word]
  472. LoaderPBlock      EQU         $93A                      ; param block for ExitToShell [10 bytes]
  473. CurApRefNum       EQU         $900                      ; refNum of application's resFile [word]
  474. CurrentA5         EQU         $904                      ; current value of A5 [pointer]
  475. CurStackBase      EQU         $908                      ; current stack base [pointer]
  476. CurApName         EQU         $910                      ; name of application [STRING[31]]
  477. LoadTrap          EQU         $12D                      ; trap before launch? [byte]
  478. SegHiEnable       EQU         $BB2                      ; (byte) 0 to disable MoveHHi in LoadSeg
  479.  
  480.  
  481. ; Background Notification Manager
  482.  
  483. BNMQHd            EQU         $B60                      ; head of background notification Q
  484.  
  485.  
  486. ; Communications Toolbox Globals Pointer
  487.  
  488. CommToolboxGlobals    EQU         $BB4                  ; [long] pointer to CTB Globals 
  489.  
  490.  
  491. FCBSPtr           EQU         $34E                      ; ptr to FCBs
  492. DefVCBPtr         EQU         $352                      ; pointer to default VCB
  493. FSFCBLen          EQU         $3F6                      ; HFS present flag / FCB size (-1 in old ROM)
  494. RomFont0          EQU         $980                      ; system font [handle]
  495. ApFontID          EQU         $984                      ; resource ID of application font [word]
  496. WindowList        EQU         $9D6                      ; Z-ordered linked list of windows [pointer]
  497. SaveUpdate        EQU         $9DA                      ; Enable update accumulation? [word]
  498. PaintWhite        EQU         $9DC                      ; erase newly drawn windows? [word]
  499. WMgrPort          EQU         $9DE                      ; window manager's grafport [pointer]
  500. DragHook          EQU         $9F6                      ; user hook during dragging [pointer]
  501. GhostWindow       EQU         $A84                      ; window hidden from FrontWindow [pointer]
  502. CurActivate       EQU         $A64                      ; window slated for activate event [pointer]
  503. CurDeactive       EQU         $A68                      ; window slated for deactivate event [pointer]
  504. OldStructure      EQU         $9E6                      ; saved structure region [handle]
  505. OldContent        EQU         $9EA                      ; saved content region [handle]
  506. SaveVisRgn        EQU         $9F2                      ; temporarily saved visRegion [handle]
  507. TopMenuItem       EQU         $A0A                      ; pixel value of top of scrollable menu
  508. AtMenuBottom      EQU         $A0C                      ; pixel value of bottom of scrollable menu
  509. MenuList          EQU         $A1C                      ; current menuBar list structure [handle]
  510. MBarEnable        EQU         $A20                      ; menuBar enable for desk accessories[word]
  511. MenuFlash         EQU         $A24                      ; flash feedback count [word]
  512. TheMenu           EQU         $A26                      ; ID of hilited menu [word]
  513. MBarHook          EQU         $A2C                      ; user hook during menuSelect [pointer]
  514. MrMacHook         EQU         $A2C                      ; Mr. Macintosh hook [pointer]
  515. MenuHook          EQU         $A30                      ; user hook during menuSelect [pointer]
  516. TopMapHndl        EQU         $A50                      ; topmost map in list [handle]
  517. SysMapHndl        EQU         $A54                      ; system map [handle]
  518. SysMap            EQU         $A58                      ; reference number of system map [word]
  519. CurMap            EQU         $A5A                      ; reference number of current map [word]
  520. ResLoad           EQU         $A5E                      ; Auto-load feature [word]
  521. ResErr            EQU         $A60                      ; Resource error code [word]
  522. FScaleDisable     EQU         $A63                      ; disable font scaling? [byte]
  523. DeskHook          EQU         $A6C                      ; hook for painting the desk [pointer]
  524. TEDoText          EQU         $A70                      ; textEdit doText proc hook [pointer]
  525. TERecal           EQU         $A74                      ; textEdit recalText proc hook [pointer]
  526. ANumber           EQU         $A98                      ; active alert ID [word]
  527. ACount            EQU         $A9A                      ; # times this alert called [word]
  528. DABeeper          EQU         $A9C                      ; beep routine [pointer]
  529. TEScrpLength      EQU         $AB0                      ; textEdit Scrap Length [word]
  530. TEScrpHandle      EQU         $AB4                      ; textEdit Scrap [handle]
  531. AppParmHandle     EQU         $AEC                      ; handle to hold application parameters
  532. ResErrProc        EQU         $AF2                      ; Resource error procedure [pointer]
  533. DlgFont           EQU         $AFA                      ; default dialog font ID [word]
  534. WidthPtr          EQU         $B10                      ; (long) Font Mgr global
  535. AtalkHk2          EQU         $B18                      ; (long) Appletalk hook
  536. SCSIFlag          EQU         $B22                      ; (word) Configuration Flag for SCSI
  537. WidthTabHandle    EQU         $B2A                      ; Font width table handle for measure
  538. LastSPExtra       EQU         $B4C                      ; (long) most recent value of space extra
  539. RomMapInsert      EQU         $B9E                      ; (byte) determines if we should link in map
  540. TmpResLoad        EQU         $B9F                      ; second byte is temporary ResLoad value.
  541. WordRedraw        EQU         $BA5                      ; (byte) - used by TextEdit RecalDraw
  542. SysFontFam        EQU         $BA6                      ; (word) System font family ID or zero
  543. SysFontSize       EQU         $BA8                      ; (word) System font size (or zero for 12 pt)
  544. MBarHeight        EQU         $BAA                      ; (word) height of menu bar (usually 20)
  545. LastFOND          EQU         $BC2                      ; (long) handle of last font def record
  546. FractEnable       EQU         $BF4                      ; (byte) flag for fractional font widths
  547.  
  548. WidthListHand     EQU         $8E4                      ; list of extra width tables, or nil.
  549. PrintErr          EQU         $944                      ; Current Printer Error
  550. GrayRgn           EQU         $9EE                      ; rounded gray desk region [handle]
  551. AuxWinHead        EQU         $0CD0                     ; [handle] Window Aux List head
  552. MenuDisable       EQU         $0B54                     ; menuID and Item when disabled item selected
  553. TESysJust         EQU         $BAC                      ; (word) system justification (intl. textEdit)
  554. MenuCInfo         EQU         $0D50                     ; hanel to menu color information table
  555. TimeSCSIDB        EQU            $0B24                    ; DBRAs & SCSI access per millisecond 
  556.  
  557.     ENDIF ; OLDROUTINENAMES 
  558.  
  559.  
  560.     ENDIF ; __LOWMEMEQU__
  561.